package com.tech.zhidengxian.model.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.tech.zhidengxian.mapper.typehandler.JsonTypeHandler;
import com.tech.zhidengxian.model.constant.OrderState;
import com.tech.zhidengxian.model.dataobject.GoodsDO;
import com.tech.zhidengxian.model.dataobject.ReceiverAddressDO;
import lombok.Data;

import java.util.Date;

/**
 * @author Ljh
 * @date 2023/5/13 11:12
 * @description
 **/
@Data
public class OrderDTO {
    private Long id;
    private OrderState orderState;
    private String orderNumber;


    @TableField(typeHandler = JsonTypeHandler.class)
    private ReceiverAddressDO receiverAddressInfo;
    @TableField(typeHandler = JsonTypeHandler.class)
    private GoodsDO goodsInfo;
    private Date createTime;
    private Date updateTime;
    private Date payTime;
    private Boolean isDeleted;
}
